package org.adream.account.dao;

import java.util.List;

import org.adream.account.entity.Dream2020SchoolEntity;
import org.apache.ibatis.annotations.Param;

@BaseMybatisDao
public interface Dream2020SchoolDao {
	
	int addDream2020School(Dream2020SchoolEntity dream2020School);
	
	int deleteDream2020School(Dream2020SchoolEntity dream2020School);
	
	int updateDream2020School(Dream2020SchoolEntity dream2020School);
	
	List<Dream2020SchoolEntity> queryDream2020SchoolsBySchoolNumber(@Param("schoolNumber") String shcoolNumber);
	
	List<Dream2020SchoolEntity> queryDream2020SchoolsByEmail(@Param("email") String email);
	
	List<Dream2020SchoolEntity> queryDream2020SchoolsByName(@Param("name") String name);
	
	//更新学校梦想中心主任
	int updateDreamDirctor(Dream2020SchoolEntity dream2020School);
}